package com.example.demo.controller;


import com.example.demo.aspect.CostTime;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @CostTime
    @RequestMapping("/t1")
    public String t1() {
        int[] arr = {1,2,3};

        return "t1";
    }
    @RequestMapping("/t2")
    public Integer t2() {
        int a = 10/0;
        return 10;
    }
    @RequestMapping("/t3")
    public Boolean t3() {
        String a = null;

        return true;
    }

}
